Optimal. Leaf size=73 \[ -\frac {e F^{c (a+b x)} \cos (d+e x)}{e^2+b^2 c^2 \log ^2(F)}+\frac {b c F^{c (a+b x)} \log (F) \sin (d+e x)}{e^2+b^2 c^2 \log ^2(F)} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.01, antiderivative size = 73, normalized size of antiderivative = 1.00, number of steps
used = 1, number of rules used = 1, integrand size = 16, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.062, Rules used = {4517}
\begin {gather*} \frac {b c \log (F) \sin (d+e x) F^{c (a+b x)}}{b^2 c^2 \log ^2(F)+e^2}-\frac {e \cos (d+e x) F^{c (a+b x)}}{b^2 c^2 \log ^2(F)+e^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 4517
Rubi steps
\begin {align*} \int F^{c (a+b x)} \sin (d+e x) \, dx &=-\frac {e F^{c (a+b x)} \cos (d+e x)}{e^2+b^2 c^2 \log ^2(F)}+\frac {b c F^{c (a+b x)} \log (F) \sin (d+e x)}{e^2+b^2 c^2 \log ^2(F)}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.12, size = 48, normalized size = 0.66 \begin {gather*} \frac {F^{c (a+b x)} (-e \cos (d+e x)+b c \log (F) \sin (d+e x))}{e^2+b^2 c^2 \log ^2(F)} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.08, size = 74, normalized size = 1.01
method | result | size |
risch | \(-\frac {e \,F^{c \left (b x +a \right )} \cos \left (e x +d \right )}{e^{2}+b^{2} c^{2} \ln \left (F \right )^{2}}+\frac {b c \,F^{c \left (b x +a \right )} \ln \left (F \right ) \sin \left (e x +d \right )}{e^{2}+b^{2} c^{2} \ln \left (F \right )^{2}}\) | \(74\) |
norman | \(\frac {\frac {e \,{\mathrm e}^{c \left (b x +a \right ) \ln \left (F \right )} \left (\tan ^{2}\left (\frac {d}{2}+\frac {e x}{2}\right )\right )}{e^{2}+b^{2} c^{2} \ln \left (F \right )^{2}}-\frac {e \,{\mathrm e}^{c \left (b x +a \right ) \ln \left (F \right )}}{e^{2}+b^{2} c^{2} \ln \left (F \right )^{2}}+\frac {2 b c \ln \left (F \right ) {\mathrm e}^{c \left (b x +a \right ) \ln \left (F \right )} \tan \left (\frac {d}{2}+\frac {e x}{2}\right )}{e^{2}+b^{2} c^{2} \ln \left (F \right )^{2}}}{1+\tan ^{2}\left (\frac {d}{2}+\frac {e x}{2}\right )}\) | \(130\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] Leaf count of result is larger than twice the leaf count of optimal. 197 vs.
\(2 (74) = 148\).
time = 0.28, size = 197, normalized size = 2.70 \begin {gather*} -\frac {{\left (F^{a c} b c \log \left (F\right ) \sin \left (d\right ) + F^{a c} \cos \left (d\right ) e\right )} F^{b c x} \cos \left (x e + 2 \, d\right ) - {\left (F^{a c} b c \log \left (F\right ) \sin \left (d\right ) - F^{a c} \cos \left (d\right ) e\right )} F^{b c x} \cos \left (x e\right ) - {\left (F^{a c} b c \cos \left (d\right ) \log \left (F\right ) - F^{a c} e \sin \left (d\right )\right )} F^{b c x} \sin \left (x e + 2 \, d\right ) - {\left (F^{a c} b c \cos \left (d\right ) \log \left (F\right ) + F^{a c} e \sin \left (d\right )\right )} F^{b c x} \sin \left (x e\right )}{2 \, {\left ({\left (b^{2} c^{2} \log \left (F\right )^{2} + e^{2}\right )} \cos \left (d\right )^{2} + {\left (b^{2} c^{2} \log \left (F\right )^{2} + e^{2}\right )} \sin \left (d\right )^{2}\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 2.24, size = 51, normalized size = 0.70 \begin {gather*} \frac {{\left (b c \log \left (F\right ) \sin \left (x e + d\right ) - \cos \left (x e + d\right ) e\right )} F^{b c x + a c}}{b^{2} c^{2} \log \left (F\right )^{2} + e^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [C] Result contains complex when optimal does not.
time = 2.64, size = 462, normalized size = 6.33 \begin {gather*} \begin {cases} \frac {\left (-1\right )^{a c} \left (-1\right )^{\frac {e x}{\pi }} x \sin {\left (d + e x \right )}}{2} + \frac {\left (-1\right )^{a c} \left (-1\right )^{\frac {e x}{\pi }} i x \cos {\left (d + e x \right )}}{2} + \frac {\left (-1\right )^{a c} \left (-1\right )^{\frac {e x}{\pi }} i \sin {\left (d + e x \right )}}{2 e} - \frac {\left (-1\right )^{a c} \left (-1\right )^{\frac {e x}{\pi }} \cos {\left (d + e x \right )}}{e} & \text {for}\: F = -1 \wedge b = \frac {e}{\pi c} \\x \sin {\left (d \right )} & \text {for}\: F = 1 \wedge e = 0 \\\frac {b c \left (e^{- \frac {i e}{b c}}\right )^{a c} \left (e^{- \frac {i e}{b c}}\right )^{b c x} \log {\left (e^{- \frac {i e}{b c}} \right )} \sin {\left (d + e x \right )}}{b^{2} c^{2} \log {\left (e^{- \frac {i e}{b c}} \right )}^{2} + e^{2}} - \frac {e \left (e^{- \frac {i e}{b c}}\right )^{a c} \left (e^{- \frac {i e}{b c}}\right )^{b c x} \cos {\left (d + e x \right )}}{b^{2} c^{2} \log {\left (e^{- \frac {i e}{b c}} \right )}^{2} + e^{2}} & \text {for}\: F = e^{- \frac {i e}{b c}} \\\frac {b c \left (e^{\frac {i e}{b c}}\right )^{a c} \left (e^{\frac {i e}{b c}}\right )^{b c x} \log {\left (e^{\frac {i e}{b c}} \right )} \sin {\left (d + e x \right )}}{b^{2} c^{2} \log {\left (e^{\frac {i e}{b c}} \right )}^{2} + e^{2}} - \frac {e \left (e^{\frac {i e}{b c}}\right )^{a c} \left (e^{\frac {i e}{b c}}\right )^{b c x} \cos {\left (d + e x \right )}}{b^{2} c^{2} \log {\left (e^{\frac {i e}{b c}} \right )}^{2} + e^{2}} & \text {for}\: F = e^{\frac {i e}{b c}} \\\frac {F^{a c} F^{b c x} b c \log {\left (F \right )} \sin {\left (d + e x \right )}}{b^{2} c^{2} \log {\left (F \right )}^{2} + e^{2}} - \frac {F^{a c} F^{b c x} e \cos {\left (d + e x \right )}}{b^{2} c^{2} \log {\left (F \right )}^{2} + e^{2}} & \text {otherwise} \end {cases} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [C] Result contains complex when optimal does not.
time = 0.41, size = 634, normalized size = 8.68 \begin {gather*} {\left (\frac {2 \, b c \log \left ({\left | F \right |}\right ) \sin \left (\frac {1}{2} \, \pi b c x \mathrm {sgn}\left (F\right ) - \frac {1}{2} \, \pi b c x + \frac {1}{2} \, \pi a c \mathrm {sgn}\left (F\right ) - \frac {1}{2} \, \pi a c + e x + d\right )}{4 \, b^{2} c^{2} \log \left ({\left | F \right |}\right )^{2} + {\left (\pi b c \mathrm {sgn}\left (F\right ) - \pi b c + 2 \, e\right )}^{2}} - \frac {{\left (\pi b c \mathrm {sgn}\left (F\right ) - \pi b c + 2 \, e\right )} \cos \left (\frac {1}{2} \, \pi b c x \mathrm {sgn}\left (F\right ) - \frac {1}{2} \, \pi b c x + \frac {1}{2} \, \pi a c \mathrm {sgn}\left (F\right ) - \frac {1}{2} \, \pi a c + e x + d\right )}{4 \, b^{2} c^{2} \log \left ({\left | F \right |}\right )^{2} + {\left (\pi b c \mathrm {sgn}\left (F\right ) - \pi b c + 2 \, e\right )}^{2}}\right )} e^{\left (b c x \log \left ({\left | F \right |}\right ) + a c \log \left ({\left | F \right |}\right )\right )} - {\left (\frac {2 \, b c \log \left ({\left | F \right |}\right ) \sin \left (\frac {1}{2} \, \pi b c x \mathrm {sgn}\left (F\right ) - \frac {1}{2} \, \pi b c x + \frac {1}{2} \, \pi a c \mathrm {sgn}\left (F\right ) - \frac {1}{2} \, \pi a c - e x - d\right )}{4 \, b^{2} c^{2} \log \left ({\left | F \right |}\right )^{2} + {\left (\pi b c \mathrm {sgn}\left (F\right ) - \pi b c - 2 \, e\right )}^{2}} - \frac {{\left (\pi b c \mathrm {sgn}\left (F\right ) - \pi b c - 2 \, e\right )} \cos \left (\frac {1}{2} \, \pi b c x \mathrm {sgn}\left (F\right ) - \frac {1}{2} \, \pi b c x + \frac {1}{2} \, \pi a c \mathrm {sgn}\left (F\right ) - \frac {1}{2} \, \pi a c - e x - d\right )}{4 \, b^{2} c^{2} \log \left ({\left | F \right |}\right )^{2} + {\left (\pi b c \mathrm {sgn}\left (F\right ) - \pi b c - 2 \, e\right )}^{2}}\right )} e^{\left (b c x \log \left ({\left | F \right |}\right ) + a c \log \left ({\left | F \right |}\right )\right )} - {\left (-\frac {i \, e^{\left (\frac {1}{2} i \, \pi b c x \mathrm {sgn}\left (F\right ) - \frac {1}{2} i \, \pi b c x + \frac {1}{2} i \, \pi a c \mathrm {sgn}\left (F\right ) - \frac {1}{2} i \, \pi a c + i \, e x + i \, d\right )}}{2 i \, \pi b c \mathrm {sgn}\left (F\right ) - 2 i \, \pi b c + 4 \, b c \log \left ({\left | F \right |}\right ) + 4 i \, e} - \frac {i \, e^{\left (-\frac {1}{2} i \, \pi b c x \mathrm {sgn}\left (F\right ) + \frac {1}{2} i \, \pi b c x - \frac {1}{2} i \, \pi a c \mathrm {sgn}\left (F\right ) + \frac {1}{2} i \, \pi a c - i \, e x - i \, d\right )}}{-2 i \, \pi b c \mathrm {sgn}\left (F\right ) + 2 i \, \pi b c + 4 \, b c \log \left ({\left | F \right |}\right ) - 4 i \, e}\right )} e^{\left (b c x \log \left ({\left | F \right |}\right ) + a c \log \left ({\left | F \right |}\right )\right )} - {\left (\frac {i \, e^{\left (\frac {1}{2} i \, \pi b c x \mathrm {sgn}\left (F\right ) - \frac {1}{2} i \, \pi b c x + \frac {1}{2} i \, \pi a c \mathrm {sgn}\left (F\right ) - \frac {1}{2} i \, \pi a c - i \, e x - i \, d\right )}}{2 i \, \pi b c \mathrm {sgn}\left (F\right ) - 2 i \, \pi b c + 4 \, b c \log \left ({\left | F \right |}\right ) - 4 i \, e} + \frac {i \, e^{\left (-\frac {1}{2} i \, \pi b c x \mathrm {sgn}\left (F\right ) + \frac {1}{2} i \, \pi b c x - \frac {1}{2} i \, \pi a c \mathrm {sgn}\left (F\right ) + \frac {1}{2} i \, \pi a c + i \, e x + i \, d\right )}}{-2 i \, \pi b c \mathrm {sgn}\left (F\right ) + 2 i \, \pi b c + 4 \, b c \log \left ({\left | F \right |}\right ) + 4 i \, e}\right )} e^{\left (b c x \log \left ({\left | F \right |}\right ) + a c \log \left ({\left | F \right |}\right )\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 2.40, size = 50, normalized size = 0.68 \begin {gather*} -\frac {F^{a\,c+b\,c\,x}\,\left (e\,\cos \left (d+e\,x\right )-b\,c\,\sin \left (d+e\,x\right )\,\ln \left (F\right )\right )}{b^2\,c^2\,{\ln \left (F\right )}^2+e^2} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________